<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Vmall后台管理--商品添加</title>
		<link rel="stylesheet" href="css/gzh/admin.css" />
		<link rel="stylesheet" href="css/new.css" />
		<link rel="stylesheet" href="css/font-awesome.min.css" />
		<link rel="stylesheet" href="css/font-awesome.css" />
		<link rel="stylesheet" href="css/adminSystem.css" />
		<script type="text/javascript" src="js/jQuerynew.js"></script>
		<script type="text/javascript" src="js/bootstrapnew.min.js"></script>
		<script type="text/javascript" src="js/gzh/goods_edit.js"></script>
		<style type="text/css">
.wrapper{
	margin: auto;
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto;
	/*IE6不识别min-height*/
	position: relative;
	overflow: hidden;
}
body{
	margin: auto;
}
		</style>
	</head>

	<body class="fixed skin-blue">
		<div class="wrapper" style="height: auto; min-height: 100%;">
			<header class="main-header">
				<div class="logo">
					<span class="logo-lg"><b>VMALL</b>后台管理</span>
				</div>
				<nav class="navbar navbar-static-top">
					<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
						<span class="sr-only glyphicon glyphicon-th-list"></span>
					</a>

					<!--顶部菜单 开始-->
					<div id="menu" class="navbar-custom-menu">
						<ul class="nav navbar-nav" name="topMenu">
							<li class="active">
								<a hidefocus="true" href="/goods/goods_list">商品</a>
							</li>
							<li>
								<a hidefocus="true" href="/member/member_list">会员</a>
							</li>
							<li>
								<a hidefocus="true" href="/order/order_list">订单</a>
							</li>
							<li>
								<a hidefocus="true" href="/market/pro_rule_list">营销</a>
							</li>
							<li>
								<a hidefocus="true" href="/market/user_reg">统计</a>
							</li>
							<li>
								<a hidefocus="true" href="/system/default">系统</a>
							</li>
							<li>
								<a hidefocus="true" href="/tools/db_bak">工具</a>
							</li>
							<li>
								<a hidefocus="true" href="/plugins/plugin_list">插件</a>
							</li>
							<li>
								<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
							</li>
						</ul>
					</div>
					<!--顶部菜单 结束-->
				</nav>
			</header>

			<aside id="admin_left" class="main-sidebar">
				<section class="sidebar" style="height: auto;">
					<div class="user-panel">
						<div class="pull-left image">

							<i class="glyphicon glyphicon-user"></i>
						</div>
						<div class="pull-left info">
							<p>admin</p>
							<a href="#">超级管理员</a>
						</div>
					</div>

					<ul class="sidebar-menu tree" data-widget="tree">
						<li class="header">商品模块菜单</li>
						<li class="treeview menu-open">
							<a href="#collapseOne" data-toggle="collapse" data-parent="#accordion">
								<i class="fa fa-home" name="ico" menu="商品管理"></i>
								<span>商品管理</span>
								<span class="pull-right-container">
									<i class="glyphicon glyphicon-chevron-down pull-right"></i>
								</span>
							</a>
							<ul id="collapseOne" class="treeview-menu" name="leftMenu" style="display: block;">
								<li >
									<a href="http://localhost:8080/vmall/adminGoodList"><i class="fa fa-circle-o"></i>商品列表</a>
								</li>
								<li class="active">
									<a href="#"><i class="fa fa-circle-o"></i>添加商品</a>
								</li>
							</ul>
						</li>
						<li class="treeview">
							<a href="#collapseTwo" data-toggle="collapse" data-parent="#accordion">
								<i class="fa fa-wrench" name="ico" menu="商品分类"></i>
								<span>商品分类</span>
								<span class="pull-right-container">
									<i class="glyphicon glyphicon-chevron-left pull-right"></i>
								</span>
							</a>
							<ul id="collapseTwo" class="treeview-menu" name="leftMenu">
								<li>
									<a href="/system/conf_base"><i class="fa fa-circle-o"></i>分类列表</a>
								</li>
								<li>
									<a href="/system/conf_guide"><i class="fa fa-circle-o"></i>添加分类</a>
								</li>
							</ul>
						</li>
						<li class="treeview">
							<a href="#collapseFour" data-toggle="collapse" data-parent="#accordion">
								<i class="fa fa-share-alt" name="ico" menu="搜索"></i>
								<span>搜索</span>
								<span class="pull-right-container">
									<i class="glyphicon glyphicon-chevron-left pull-right"></i>
								</span>
							</a>
							<ul id="collapseFour" class="treeview-menu" name="leftMenu">
								<li>
									<a href="/system/oauth_list"><i class="fa fa-circle-o"></i>关键字搜索</a>
								</li>
								<li>
									<a href="/system/hsms"><i class="fa fa-circle-o"></i>-----</a>
								</li>
							</ul>
						</li>
						<li class="treeview">
							<a href="#collapseFive" data-toggle="collapse" data-parent="#accordion">
								<i class="fa fa-truck" name="ico" menu="配送管理"></i>
								<span>配送管理</span>
								<span class="pull-right-container">
									<i class="glyphicon glyphicon-chevron-left pull-right"></i>
								</span>
							</a>
							<ul id="collapseFive" class="treeview-menu" name="leftMenu">
								<li>
									<a href="/system/delivery"><i class="fa fa-circle-o"></i>配送方式</a>
								</li>
								<li>
									<a href="/system/freight_list"><i class="fa fa-circle-o"></i>物流公司</a>
								</li>
								<li>
									<a href="/system/takeself_list"><i class="fa fa-circle-o"></i>自提点列表</a>
								</li>
								<li>
									<a href="/system/takeself_edit"><i class="fa fa-circle-o"></i>添加自提点</a>
								</li>
							</ul>
						</li>

					</ul>
				</section>
			</aside>
			<div id="admin_right" class="content-wrapper" style="min-height: 850px;">
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb">
						<li>
							<i class="home-icon fa fa-home"></i>
							<a href="#">商品</a>
						</li>
						<li>
							<a href="#">商品管理</a>
						</li>
						<li class="active">商品编辑</li>
					</ul>
				</div>
				<div class="content" style="min-height: 850px;">
					<form action="#" method="post" name="goodsaddForm">
						<div class="nav-tabs-custom">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="#tab1" data-toggle="tab" aria-expanded="true">商品信息</a>
								</li>
								<li class="">
									<a href="#tab2" data-toggle="tab" aria-expanded="false">描述</a>
								</li>
								<li class="">
									<a href="#tab3" data-toggle="tab" aria-expanded="false">营销选项</a>
								</li>
							</ul>
						</div>
						<div class="tab-content">
							<div class="tab-pane active" id="tab1">
								<table class="table form-table">
									<colgroup>
										<col width="130px">
										<col>
									</colgroup>
									<tbody>
										<tr>
											<th>商品名称：</th>
											<td>
												<input class="form-control" name="name" type="text" value="" pattern="required">
											</td>
										</tr>
										<tr>
											<th>关键词：</th>
											<td>
												<input type="text" class="form-control" name="search_words" value="">
												<p class="help-block">每个关键词最长为15个字符，必须以","(逗号)分隔符</p>
											</td>
										</tr>
										<tr>
											<th>所属分类：</th>
											<td>
												<div id="__categoryBox" style="margin-bottom:8px"></div>
												<button class="btn btn-primary" type="button" name="_goodsCategoryButton" data-toggle="modal" data-target="#charge"><i class="fa fa-list"></i> 设置分类</button>
												<script src="js/gzh/public.js"></script>
												<script src="js/gzh/jquery.ui.widget.js"></script>
												<script type="text/javascript" charset="UTF-8" src="js/gzh/artTemplate.js"></script>
												<script type="text/javascript" charset="UTF-8" src="js/gzh/artTemplate-plugin.js"></script>
												<script>
													jQuery(function() {
														_goodsCategoryWidget = new categoryWidget({
															"type": "checkbox",
															"name": "_goods_category[]",
															"value": "",
															"table": "category",
															"categoryData": [{
																"id": "1",
																"name": "家用电器",
																"parent_id": "33",
																"sort": "0",
																"visibility": "1",
																"keywords": "",
																"descript": "",
																"title": "",
																"seller_id": "0"
															}, {
																"id": "2",
																"name": "大家电",
																"parent_id": "1",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "3",
																"name": "平板电视",
																"parent_id": "2",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "4",
																"name": "食品饮料",
																"parent_id": "0",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "5",
																"name": "进口食品",
																"parent_id": "4",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "6",
																"name": "牛奶",
																"parent_id": "5",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "7",
																"name": "家具",
																"parent_id": "0",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "8",
																"name": "家装建材",
																"parent_id": "7",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "9",
																"name": "灯饰照明",
																"parent_id": "8",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "10",
																"name": "服装",
																"parent_id": "0",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "11",
																"name": "男装",
																"parent_id": "10",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "12",
																"name": "衬衫",
																"parent_id": "11",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "13",
																"name": "生活电器",
																"parent_id": "1",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "14",
																"name": "厨房电器",
																"parent_id": "1",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "15",
																"name": "电风扇",
																"parent_id": "13",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "16",
																"name": "冷风扇",
																"parent_id": "13",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "17",
																"name": "扫地机器人",
																"parent_id": "13",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "18",
																"name": "电饭煲",
																"parent_id": "14",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "19",
																"name": "微波炉",
																"parent_id": "14",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "20",
																"name": "女包",
																"parent_id": "10",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "21",
																"name": "女装",
																"parent_id": "10",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "31",
																"name": "卧室家具",
																"parent_id": "7",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "32",
																"name": "实木床",
																"parent_id": "31",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "33",
																"name": "酒品",
																"parent_id": "4",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "34",
																"name": "红酒和白酒",
																"parent_id": "33",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "35",
																"name": "母婴用品",
																"parent_id": "0",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "36",
																"name": "尿不湿",
																"parent_id": "35",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "37",
																"name": "奶粉",
																"parent_id": "35",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "38",
																"name": "玩具",
																"parent_id": "35",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "39",
																"name": "汽车道具",
																"parent_id": "0",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "40",
																"name": "保险",
																"parent_id": "39",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "41",
																"name": "装饰",
																"parent_id": "39",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "42",
																"name": "配件",
																"parent_id": "39",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "43",
																"name": "美体护肤",
																"parent_id": "0",
																"sort": "0",
																"visibility": "1",
																"keywords": null,
																"descript": null,
																"title": null,
																"seller_id": "0"
															}, {
																"id": "44",
																"name": "132",
																"parent_id": "19",
																"sort": "99",
																"visibility": "1",
																"keywords": "",
																"descript": "",
																"title": "dsasad",
																"seller_id": "0"
															}],
															"categoryParentData": {
																"33": [{
																	"id": "1",
																	"name": "家用电器",
																	"parent_id": "33",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": "",
																	"descript": "",
																	"title": "",
																	"seller_id": "0"
																}, {
																	"id": "34",
																	"name": "红酒和白酒",
																	"parent_id": "33",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"1": [{
																	"id": "2",
																	"name": "大家电",
																	"parent_id": "1",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "13",
																	"name": "生活电器",
																	"parent_id": "1",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "14",
																	"name": "厨房电器",
																	"parent_id": "1",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"2": [{
																	"id": "3",
																	"name": "平板电视",
																	"parent_id": "2",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"0": [{
																	"id": "4",
																	"name": "食品饮料",
																	"parent_id": "0",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "7",
																	"name": "家具",
																	"parent_id": "0",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "10",
																	"name": "服装",
																	"parent_id": "0",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "35",
																	"name": "母婴用品",
																	"parent_id": "0",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "39",
																	"name": "汽车道具",
																	"parent_id": "0",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "43",
																	"name": "美体护肤",
																	"parent_id": "0",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"4": [{
																	"id": "5",
																	"name": "进口食品",
																	"parent_id": "4",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "33",
																	"name": "酒品",
																	"parent_id": "4",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"5": [{
																	"id": "6",
																	"name": "牛奶",
																	"parent_id": "5",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"7": [{
																	"id": "8",
																	"name": "家装建材",
																	"parent_id": "7",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "31",
																	"name": "卧室家具",
																	"parent_id": "7",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"8": [{
																	"id": "9",
																	"name": "灯饰照明",
																	"parent_id": "8",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"10": [{
																	"id": "11",
																	"name": "男装",
																	"parent_id": "10",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "20",
																	"name": "女包",
																	"parent_id": "10",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "21",
																	"name": "女装",
																	"parent_id": "10",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"11": [{
																	"id": "12",
																	"name": "衬衫",
																	"parent_id": "11",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"13": [{
																	"id": "15",
																	"name": "电风扇",
																	"parent_id": "13",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "16",
																	"name": "冷风扇",
																	"parent_id": "13",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "17",
																	"name": "扫地机器人",
																	"parent_id": "13",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"14": [{
																	"id": "18",
																	"name": "电饭煲",
																	"parent_id": "14",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "19",
																	"name": "微波炉",
																	"parent_id": "14",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"31": [{
																	"id": "32",
																	"name": "实木床",
																	"parent_id": "31",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"35": [{
																	"id": "36",
																	"name": "尿不湿",
																	"parent_id": "35",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "37",
																	"name": "奶粉",
																	"parent_id": "35",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "38",
																	"name": "玩具",
																	"parent_id": "35",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"39": [{
																	"id": "40",
																	"name": "保险",
																	"parent_id": "39",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "41",
																	"name": "装饰",
																	"parent_id": "39",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}, {
																	"id": "42",
																	"name": "配件",
																	"parent_id": "39",
																	"sort": "0",
																	"visibility": "1",
																	"keywords": null,
																	"descript": null,
																	"title": null,
																	"seller_id": "0"
																}],
																"19": [{
																	"id": "44",
																	"name": "132",
																	"parent_id": "19",
																	"sort": "99",
																	"visibility": "1",
																	"keywords": "",
																	"descript": "",
																	"title": "dsasad",
																	"seller_id": "0"
																}]
															}
														});
													});
												</script>
												<a href="/goods/category_edit">添加新分类</a>
											</td>
										</tr>
										<tr>
											<th>是否上架：</th>
											<td>
												<label class="radio-inline">
									                                <input type="radio" name="is_del" value="0" checked="">是
									                            </label>
												<label class="radio-inline">
									                                <input type="radio" name="is_del" value="2">否
									                            </label>
												<p class="help-block">只有上架的商品才会在前台显示出来，客户是无法看到下架商品</p>
											</td>
										</tr>
										<tr>
											<th>基本数据：</th>
											<td>
												<div class="table-responsive" id="productBox" style="width: 1493px;">
													<table class="table">
														<thead id="goodsBaseHead">
															<tr>
																<td>商品货号</td>
										
																<td>库存</td>
																<td>市场价格</td>
																<td>销售价格</td>
																<td>成本价格</td>
																<td>运费</td>
										
															</tr>
														</thead>
										
														<!--商品标题模板-->
														<%-- <script id="goodsHeadTemplate" type="text/html">
															<tr>
																<td>商品货号</td>
																<%var isProduct = false;%>
																<%for(var item in templateData){%>
																<%isProduct = true;%>
																<td>
																	<a href="javascript:confirm('确定要删除此列规格？','delSpec(<%=templateData[item]['id']%>)');">
																		<%=templateData[item]['name']%>
																	</a>
																</td>
																<%}%>
																<td>库存</td>
																<td>市场价格</td>
																<td>销售价格</td>
																<td>成本价格</td>
																<td>运费</td>
																<%if(isProduct == true){%>
																<td>操作</td>
																<%}%>
															</tr>
														</script> --%>
										
														<tbody id="goodsBaseBody">
										
															<tr>
																<td><input class="form-control input-sm" name="_goods_no[0]" pattern="required" type="text" value="" style="width:120px"></td>
										
																<td><input class="form-control input-sm" name="_store_nums[0]" type="text" pattern="int" value="100" style="width:70px"></td>
																<td><input class="form-control input-sm" name="_market_price[0]" type="text" pattern="float" value="" style="width:70px"></td>
																<td>
																	<input type="hidden" name="_groupPrice[0]" value="">
																	<input class="form-control input-sm" name="_sell_price[0]" type="text" pattern="float" value="" style="width:70px;display:inline;">
																	<button class="btn btn-sm btn-default" type="button" onclick="memberPrice(this);"><i class="fa fa-user"></i> 会员价格</button>
																</td>
																<td><input class="form-control input-sm" name="_cost_price[0]" type="text" pattern="float" empty="" value="" style="width:70px"></td>
																<td><input class="form-control input-sm" name="_weight[0]" type="text" pattern="float" empty="" value="" style="width:70px"></td>
										
															</tr>
										
														</tbody>
										
														<!--商品内容模板-->
														<%-- <script id="goodsRowTemplate" type="text/html">
															<%var i=0;%>
															<%for(var item in templateData){%>
															<%item = templateData[item]%>
															<tr>
																<td><input class="form-control input-sm" name="_goods_no[<%=i%>]" pattern="required" type="text" value="<%=item['goods_no'] ? item['goods_no'] : item['products_no']%>" style="width:120px" /></td>
																<%var isProduct = false;%>
																<%var specArrayList = typeof item['spec_array'] == 'string' && item['spec_array'] ? JSON().parse(item['spec_array']) : item['spec_array'];%>
																<%for(var result in specArrayList){%>
																<%result = specArrayList[result]%>
																<input type='hidden' name="_spec_array[<%=i%>][]" value='<%=JSON().stringify(result)%>' />
																<%isProduct = true;%>
																<td>
																	<%if(result['type'] == 1){%>
																	<%=result['value']%>
																	<%}else{%>
																	<img class="img-thumbnail" width="30px" height="30px" src="<%=webroot(result['value'])%>">
																	<%}%>
																</td>
																<%}%>
																<td><input class="form-control input-sm" name="_store_nums[<%=i%>]" type="text" pattern="int" value="<%=item['store_nums']?item['store_nums']:100%>" style="width:70px" /></td>
																<td><input class="form-control input-sm" name="_market_price[<%=i%>]" type="text" pattern="float" value="<%=item['market_price']%>" style="width:70px" /></td>
																<td>
																	<input type='hidden' name="_groupPrice[<%=i%>]" value="<%=item['groupPrice']%>" />
																	<input class="form-control input-sm" name="_sell_price[<%=i%>]" type="text" pattern="float" value="<%=item['sell_price']%>" style="width:70px;display:inline;" />
																	<button class="btn btn-sm <%if(item['groupPrice']){%>btn-success<%}else{%>btn-default<%}%>" type="button" onclick="memberPrice(this);"><i class="fa fa-user"></i> 会员价格</button>
																</td>
																<td><input class="form-control input-sm" name="_cost_price[<%=i%>]" type="text" pattern="float" empty value="<%=item['cost_price']%>" style="width:70px" /></td>
																<td><input class="form-control input-sm" name="_weight[<%=i%>]" type="text" pattern="float" empty value="<%=item['weight']%>" style="width:70px" /></td>
																<%if(isProduct == true){%>
																<td>
																	<a onclick="delProduct(this);"><i class='operator fa fa-close'></i></td>
																<%}%>
															</tr>
															<%i++;%>
															<%}%>
														</script> --%>
													</table>
												</div>
											</td>
										</tr>
										<tr>
											<th>规格：</th>
											<td>
												<div class="row">
													<div class="col-xs-3">
														<select class="form-control" onchange="selSpecVal(this);" id="specNameSel">
															<option value="">选规格名称</option>
															<option value="692">手感</option>
															<option value="697">qewqweqw</option>
															<option value="708">123</option>
															<option value="709">模板类型</option>
															<option value="710">12321</option>
															<option value="691">尺寸</option>
															<option value="705">后台商品模型</option>
															<option value="743">颜色</option>
															<option value="744">5455</option>
															<option value="720">内存</option>
															<option value="721">张三</option>
															<option value="722">4444125</option>
															<option value="723">111</option>
															<option value="724">123123</option>
															<option value="725">新增1</option>
															<option value="726">test</option>
															<option value="727">内存</option>
															<option value="728">颜色</option>
															<option value="729">色泽</option>
															<option value="745">颜色</option>
															<option value="746">Shehhe</option>
															<option value="739">颜色</option>
															<option value="740">电压</option>
															<option value="741">11</option>
															<option value="742">1</option>
															<option value="738">mkjkj</option>
															<option value="747">gg1</option>
															<option value="748">性别</option>
															<option value="750">手机屏幕</option>
															<option value="755">5222</option>
															<option value="756">规格测试</option>
															<option value="757">你好</option>
															<option value="758">总监</option>
															<option value="759">颜色</option>
															<option value="760">颜色</option>
															<option value="677">色的</option>
															<option value="679">尺码</option>
															<option value="680">型号</option>
															<option value="687">测试</option>
															<option value="688">测试颜色</option>
															<option value="689">测试</option>
															<option value="673">颜色</option>
															<option value="674">尺码</option>
															<option value="675">图案</option>
															<option value="676">杂色</option>
														</select>
													</div>
										
													<div class="col-xs-3">
														<select class="form-control" onchange="selSpec(this);" id="specValSel">
															<option value="">选择规格值</option>
														</select>
													</div>
										
													<div class="col-xs-2">
														<button class="btn btn-default" onclick="addNewSpec(0);" type="button">新建规格</button>
													</div>
												</div>
												<p class="help-block">可从现有规格中选择或新建规格生成货品。比如：尺码，颜色，类型...</p>
											</td>
										</tr>
										<tr>
											<th>商品推荐：</th>
											<td>
												<label class="checkbox-inline">
										                                <input type="checkbox" name="_goods_commend[]" value="1">最新商品
										                            </label>
												<label class="checkbox-inline">
										                                <input type="checkbox" name="_goods_commend[]" value="2">特价商品
										                            </label>
												<label class="checkbox-inline">
										                                <input type="checkbox" name="_goods_commend[]" value="3">热卖商品
										                            </label>
												<label class="checkbox-inline">
										                                <input type="checkbox" name="_goods_commend[]" value="4">推荐商品
										                            </label>
											</td>
										</tr>
										<tr>
											<th>产品相册：</th>
											<td>
												<input id="fileUpload" type="file" accept="image/png,image/gif,image/jpeg" name="_goodsFile" multiple="multiple" data-url="/goods/goods_img_upload">
												<p class="help-block" id="uploadPercent">可以上传多张图片，分辨率3000px以下，大小不得超过50M</p>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="tab-pane" id="tab2">
								<table class="table form-table">
									<colgroup>
										<col width="130px">
										<col>
									</colgroup>
									<tbody>
										<tr>
											<th>产品描述：</th>
											<td>
												<textarea id="content" name="content" style="width: 100%; height: 400px; display: block;"></textarea></td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</form>
				</div>
				<div class="text-center">
					<button class="btn btn-primary" type="submit" onclick="return checkForm()">发布商品</button>
				</div>
			</div>
		</div>

		<div class="modal fade" id="charge" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 516px;">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×            </button>
						<h4 class="modal-title" id="myModalLabel">
		               选择商品分类          </h4>
					</div>
					<div class="modal-body" style="overflow: hidden;">
						<div class="container1">
							<iframe src="gzh-goodsmenu.html" name="Opengoods_setting" frameborder="0" style="overflow-y: hidden; width: 516px; height: 400px; border: 0px none;"></iframe>

						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭            </button>
						<button type="button" class="btn btn-primary">
		               提交更改            </button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!-- /.modal -->
		<script type="text/javascript">
			$(function() {
				$('#collapseone').collapse('show')
			});
			$(function() {
				$('#collapseTwo').collapse('hide')
			});
			$(function() {
				$('#collapseThree').collapse('hide')
			});
			$(function() {
				$('#collapseFour').collapse('hide')
			});
			$(function() {
				$('#collapseFive').collapse('hide')
			});
			$(function() {
				$('#collapseSix').collapse('hide')
			});
			$(function() {
				$('#collapseSeven').collapse('hide')
			});
			$(function() {
				$("#checkAll").click(function() {
					if($(this).attr("data") == "true") {
						$(".table-list :checkbox").prop("checked", true);
						$(this).attr("data", false);
					} else if($(this).attr("data") == "false") {
						$(".table-list :checkbox").prop("checked", false);
						$(this).attr("data", true);
					}

				})
			})
		</script>

	</body>

</html>